#ifndef __POWEROFF_H__
#define __POWEROFF_H__

#ifdef __cplusplus
extern "C" {
#endif


#define SET_FIO_DIR                		1  // Peripheral Flag Direction Register
#define SET_FIO_POLAR              		2  // Flag Source Polarity Register
#define SET_FIO_EDGE               		3  // Flag Source Sensitivity Register
#define SET_FIO_BOTH               		4  // Flag Set on BOTH Edges Register
#define SET_FIO_INEN					5  // Flag Input Enable Register 



#define INPUT							0 // SET_FIO_DIR
#define OUTPUT							1

#define ACTIVEHIGH_RISINGEDGE			0 // SET_FIO_POLAR
#define ACTIVELOW_FALLINGEDGE			1

#define LEVEL							0 // SET_FIO_EDGE
#define EDGE							1

#define SINGLEEDGE						0 // SET_FIO_BOTH
#define BOTHEDGES						1

#define INPUT_DISABLE					0 // SET_FIO_INEN
#define INPUT_ENABLE					1



#define     BACK_LIGHT           "/dev/pf11"
#define POWER_ON 1
#define POWER_OFF 2

int InitBacklight (void);

int SetBacklight (int value);
int CloseBacklight (void);

#ifdef __cplusplus
}
#endif

#endif
